<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $maint_log_title; ?></title>
<!-- YUI Reset -->
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.9.0/build/reset/reset-min.css"> 
<!-- mootools / datepicker css and js -->
<link href="css/datepicker.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/mootools.js"></script>
<script language="javascript" src="js/mootools-more.js"></script>
<script language="javascript" src="js/datepicker.js"></script>
<!-- our own css -->
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id=container> 
	<!--Start of header-->
	<div id=header>
		<!--Mark's schedule block-->
			<?php
				// query the schedule table for the in/out
				$sql = "SELECT * FROM schedule";
				if($result = mysql_query($sql)) echo mysql_error();
				$schedule = mysql_fetch_array($result);
			?>
		<a href="manage_schedule.php" title="Manage the Schedule">
		<div id=schedule >Mark's Schedule - Green = In, Red = Out
		<table id=schedule>
			<thead>
				<tr>
					<th>Mon</th>
					<th>Tue</th>
					<th>Wed</th>
					<th>Thu</th>
					<th>Fri</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td <?php printf('class="%s"', ($schedule['mon-am']) ? "in" : "out") ?> >AM</td>
					<td <?php printf('class="%s"', ($schedule['tue-am']) ? "in" : "out") ?> >AM</td>
					<td <?php printf('class="%s"', ($schedule['wed-am']) ? "in" : "out") ?> >AM</td>
					<td <?php printf('class="%s"', ($schedule['thu-am']) ? "in" : "out") ?> >AM</td>
					<td <?php printf('class="%s"', ($schedule['fri-am']) ? "in" : "out") ?> >AM</td>
				</tr>
				<tr>
					<td <?php printf('class="%s"', ($schedule['mon-pm']) ? "in" : "out") ?> >PM</td>
					<td <?php printf('class="%s"', ($schedule['tue-pm']) ? "in" : "out") ?> >PM</td>
					<td <?php printf('class="%s"', ($schedule['wed-pm']) ? "in" : "out") ?> >PM</td>
					<td <?php printf('class="%s"', ($schedule['thu-pm']) ? "in" : "out") ?> >PM</td>
					<td <?php printf('class="%s"', ($schedule['fri-pm']) ? "in" : "out") ?> >PM</td>
				</tr>
			</tbody>
		</table>
		</div>
		</a>
		<!--End of Mark's schedule-->
		<h1><?php echo $maint_log_config['site-name'];?></h1>
		<h2><?php echo $maint_log_subhead;?></h2>
	</div>
	<!--End of Header-->
	<!--Main Menu-->
	<div id=menu>
		<a class="nav" title="Add Project" href="add_proj.php">
			<span class="button">Add Project</span>
		</a>
		<a class="nav" title="List Projects" href="index.php">
			<span class="button">List Projects</span>
		</a>
		<a class="hidden" title="Admin Mode" href="#">
			<span class="button">Admin Mode</span>
		</a>
		<a class="nav" title="Help" href="docs/maint-log-docs.pdf">
			<span class="button">Help</span>
		</a>
	</div>
	<!--End of Main Menu-->
